package top.ddandang.blog.bean;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * <p>
 *
 * </p>
 *
 * @author: D
 * @since: 2020/9/6
 * @version: 1
 */
@Data
@Component
@PropertySource(value = "classpath:personnel.yaml")
@ConfigurationProperties(prefix = "wechat")
public class WeChatBean {

    @Value("${appid}")
    private String appId;

    @Value("${secret}")
    private String secret;
}
